#pragma once


class Worker 
{
	StringKey name;
	unsigned int seniority;
	unsigned int rank;


public:
	Worker();
	Worker( const Worker & worker );
	Worker( const StringKey & name , const unsigned int & seniority  , const unsigned int & rank);
	~Worker();

	StringKey * getKey ();
	static Worker * read () ;

	unsigned int getSeniority ();
	unsigned int getRank ();

	void setSeniority ( unsigned int seniority);
	void setRank (unsigned int rank);
	friend ostream & operator << ( ostream & out , const Worker & worker );
	friend istream & operator >> ( istream & in , Worker & worker );

};




